package mutsumimod.monitors;

import basemod.interfaces.OnPlayerTurnStartSubscriber;
import basemod.interfaces.OnStartBattleSubscriber;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.rooms.AbstractRoom;
import mutsumimod.cards.custom.Warship;
import mutsumimod.cards.derivative.DontRuinIt;

public class ReloadFixMonitor extends BaseMonitor implements OnStartBattleSubscriber {

    @Override
    public void receiveOnBattleStart(AbstractRoom abstractRoom) {
        for(AbstractCard c: AbstractDungeon.player.masterDeck.group){
            if(c instanceof Warship){
                c.baseDamage=c.misc;
                c.damage=c.misc;
                c.initializeDescription();
            }
            if(c instanceof DontRuinIt){
                ((DontRuinIt) c).updateDescription();
            }
        }
    }
}
